import javax.swing.Box;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.event.ChangeListener;

class interfaceClass extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	static Box[] box = new Box[10];

	public interfaceClass (Integer index) {
		
		System.out.println("new box[" + index + "]");
		box[index] = Box.createHorizontalBox();
		box[index].add(new tree(index));
		box[index].add(Box.createHorizontalStrut(10));
		box[index].add(new table(index));
		mainWindow.jtp.addTab("Browsing::", box[index]);
		
	}
	
	public static void addOneTab(Integer i) {
		interfaceClass ic = new interfaceClass(i);
		//System.out.println("There are " + i.toString() + " open tabs.");
		ic.setVisible(true);
	}
}